<%@ page language="java" contentType="text/html; charset=utf8"
	pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@include file="/resources/css/title.jsp"%>
<head>
    <script src="/gsp_banking-0.5/resources/js/numbersOnly.js" type="text/javascript"></script>
</head>
<body onload="CheckForReload()">

<div class="wrapper">

<%@include file="/resources/css/header.jsp"%>

<%@include file="/resources/css/menu.jsp"%>

<center>
<table class="data_title">

	<tr class="data_title"><td>
		<h3><spring:message code="label.money_transfer" /></h3>
	</td></tr>

    <tr><td class="data_table">
        <form:form method="post" action="submit_transfer" commandName="moneyTransfer">

            <table class="input_form">
                <tr>
                    <td class="input_txt">
                        <spring:message code="label.money_transfers.from" />
                    </td>
                    <td colspan="2" class="input_inp">
                        <span class="input"><form:select path="accountIdFrom" items="${accounts}" itemLabel="fullName" itemValue="id"/>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td class="input_txt">
                        <spring:message code="label.money_transfers.to" />
                    </td>
                    <td colspan="2" class="input_inp">
                        <span class="input"><form:select path="accountIdTo" items="${accounts}" itemLabel="fullName" itemValue="id"/>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td class="input_txt">
                        <form:label path="amount"><spring:message code="label.money_transfers.amount" />
                        </form:label>
                    </td>
                    <td><form:input path="amount" size="8" maxlength="8" onkeypress="return numbersonly(this, event)"/>
                    &nbsp;
                    <span class="input"><form:select path="currency" items="${currencies}" itemLabel="id" itemValue="id"/></span></td>
                </tr>
                <tr>
                    <td colspan="3" align="center">
                        <input type="submit"  class="input_button"
                               value="<spring:message code="label.money_transfers.transfer"/>" />
                    </td>
                </tr>
            </table>
        </form:form>
    </td></tr>

</table>
</center>


<div class="push"></div>
</div>

<%@include file="/resources/css/footer.jsp"%>

</body>
</html>